package study.alex.resumedb.gae.feeds;

import java.io.Serializable;
import java.util.Arrays;
import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * User: alex
 * Date: 13.02.14
 * Time: 10:10
 * SVN $Id$
 */
public class VacancyFeedFactory implements Serializable {
    private static final String[] FEEDS = {"HeadHunter.RU", "SuperJob.Ru", "Linkedin", "Careers 2.0", "GitHub Jobs"};

    public static List<String> getKnownFeeds() {
        return Arrays.asList(FEEDS);
    }

    public static VacancyFeed getInstance(String id) {

        if (id == null || !Arrays.asList(FEEDS).contains(id)) return null;
        //TODO Create different VacancyFeed instance

        return null;
    }
}
